import {API, API_BASE_URL} from "@/api/NewAxiosAPI";
import type {ResponseInterface} from "@/type/models";

export const subscribeURL = API_BASE_URL + "/ics/subscribe?auth="

export async function resetKeyAPI(token:string){
    const r : ResponseInterface = await API({
        url:"/ics/auth/reset",
        method:"post",
        headers:{
            Authorization:token
        }
    })
    return r.data
}

export async function getKeyAPI(token:string){
    const r : ResponseInterface = await API({
        url:"/ics/auth",
        method:"get",
        headers:{
            Authorization:token
        }
    })
    return r.data
}